﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VietThinks.Model;

namespace VietThinks.Mapping.Maps
{
    public class RightInRoleMap : DomainEntityMap<RightInRole>
    {
        public RightInRoleMap()
        {
            Schema("Admin");
            Table("RightInRole");
            References(m => m.Role, "RoleId");
            References(m => m.Right, "RightId");
            //HasMany(m => m.Rights)
            //    .KeyColumn("RightId")
            //    .Access.CamelCaseField()
            //    .Cascade.AllDeleteOrphan();           
        }
    }
}
